home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / quicktime / quicktime vr / addvractions / addvractions.h < prev    next >
Encoding:
Text File  |  2000-06-23  |  2.0 KB  |  102 lines

  1. //////////
  2. //
  3. //    File:        AddVRActions.h
  4. //
  5. //    Contains:    Sample code for adding wired actions to a QuickTime VR movie.
  6. //
  7. //    Written by:    Tim Monroe
  8. //                Based on existing code by Bill Wright
  9. //
  10. //    Copyright:    © 1999 by Apple Computer, Inc., all rights reserved.
  11. //
  12. //    Change History (most recent first):
  13. //
  14. //       <1>         07/14/99    rtm        first file from bw
  15. //       
  16. //////////
  17.  
  18.  
  19. //////////
  20. //
  21. // header files
  22. //
  23. //////////
  24.  
  25. #ifndef __MACTYPES__
  26. #include <MacTypes.h>
  27. #endif
  28.  
  29. #ifndef __ENDIAN__
  30. #include <Endian.h>
  31. #endif
  32.  
  33. #ifndef __MOVIES__
  34. #include <Movies.h>
  35. #endif
  36.  
  37. #ifndef __MACMEMORY__
  38. #include <MacMemory.h>
  39. #endif
  40.  
  41. #ifndef _STRING_H
  42. #include <string.h>
  43. #endif
  44.  
  45. #ifndef __FONTS__
  46. #include <Fonts.h>
  47. #endif
  48.  
  49. #ifndef __MOVIES__
  50. #include <Movies.h>
  51. #endif
  52.  
  53. #ifndef __FIXMATH__
  54. #include <FixMath.h>
  55. #endif
  56.  
  57. #ifndef __QUICKTIMEVRFORMAT__
  58. #include <QuickTimeVRFormat.h>
  59. #endif
  60.  
  61. #ifndef __QUICKTIMEVR__
  62. #include <QuickTimeVR.h>
  63. #endif
  64.  
  65. // Windows-specific header files
  66. #if TARGET_OS_WIN32
  67.  
  68.     #ifndef __QTML__
  69.     #include <QTML.h>
  70.     #endif
  71.     
  72.     #include <windows.h>
  73.     
  74. #endif
  75.  
  76.  
  77. //////////
  78. //
  79. // constants
  80. //
  81. //////////
  82.  
  83. #define kIndexZero                        0
  84. #define kIndexOne                        1
  85. #define kZeroDataLength                    0
  86.  
  87.  
  88. //////////
  89. //
  90. // function prototypes
  91. //
  92. //////////
  93.  
  94. static OSErr                            AddVRAct_GetFirstHotSpot (Handle theSample, long *theHotSpotID);
  95. static OSErr                            AddVRAct_CreateHotSpotActionContainer (QTAtomContainer *theActions);
  96. static OSErr                            AddVRAct_CreateFrameLoadedActionContainer (QTAtomContainer *theActions);
  97. static OSErr                            AddVRAct_SetFrameLoadedWiredActions (Handle theSample, QTAtomContainer theActions);
  98. static OSErr                            AddVRAct_SetWiredActionsToHotSpot (Handle theSample, long theHotSpotID, QTAtomContainer theActions);
  99. static OSErr                            AddVRAct_WriteMediaPropertyAtom (Media theMedia, long thePropertyID, long thePropertySize, void *theProperty);
  100. static void                                AddVRAct_AddWiredActionsToQTVRMovie (FSSpec *theFSSpec);
  101. static void                                AddVRAct_ConvertFloatToBigEndian (float *theFloat);
  102.